<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_service_order".
 *
 * @property string $order_id
 * @property string $order_item
 * @property string $order_time
 * @property string $add_time
 * @property integer $order_status
 * @property string $order_member_name
 * @property string $order_member_phone
 */
class BusServiceOrder extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_service_order';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['order_item', 'order_status', 'order_member_name', 'order_member_phone', 'shop_id'], 'required'],
            [['order_time', 'add_time'], 'safe'],
            [['order_status', 'shop_id'], 'integer'],
            [['order_item', 'order_member_name'], 'string', 'max' => 45],
            [['order_member_phone'], 'string', 'max' => 11]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'order_id' => 'Order ID',
            'shop_id' => 'shop_id',
            'order_item' => 'Order Item',
            'order_time' => 'Order Time',
            'add_time' => 'Add Time',
            'order_status' => 'Order Status',
            'order_member_name' => 'Order Member Name',
            'order_member_phone' => 'Order Member Phone',
        ];
    }
}
